from base.base import Base
from selenium.webdriver.common.by import By
from time import sleep
class GuanzhuPage(Base):
    sousuo=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.FrameLayout[2]/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.LinearLayout[1]')
    liebiao=(By.ID,'com.kongfz.app:id/etContent')
    suosuoanniu=("new Uiselector().resoutceld('com.kongfz.app:id/tvSearch')")
    sousuo1=(By.XPATH,'//android.widget,TextVew[@recource-id="com.kongfz.app:id/tvSearch"]')
    dy1=(By.ID,'com.kongfz.app:id/et_search')
    dy2=(By.ID,'com.kongfz.app:id.et_search')
    dy3=(By.ID,'com.kongfz.app:id/etContent')
    def guanzhuyewu(self,content):
        self.loc_ele(self.guanzhuyewu).click()
        sleep(2)
        self.loc_ele(self.sousuo).click()
        sleep(2)
        self.loc_ui_ele(self.suosuoanniu).send_keys('红楼们')
        sleep(2)
        self.loc_ele(self.sousuo1).click()
        sleep(2)


